package b1.scenes.home.wanted
{
	import b1.conifg.*;
	import b1.net.*;
	import b1.players.*;
	import com.greensock.*;
	
	import flash.display.Sprite;
	import flash.text.*;
	public class WantedMes extends Sprite
	{
		private var words:Array = ["人生真是寂寞如雪啊~", "哎..一不小心又第一了~","长的帅真不是我的错...","楼上那家伙怎么看怎么不顺眼!"]
		public function WantedMes(rank:int)
		{
			var ClueMsgBgrImage:Class = ResourceHelper.getInstance().getClassByName("ClueMsgBgrImage");
			var clueMsgBgrSprite:Sprite = new ClueMsgBgrImage();
			addChild(clueMsgBgrSprite);
			var clueText:TextField = new TextField();
			clueText.selectable = false;
        	clueText.autoSize = TextFieldAutoSize.LEFT;
        	clueText.wordWrap = true;
        	clueText.width = clueMsgBgrSprite.width * 0.8;
        	if(rank == 0)
        	{
        		clueText.defaultTextFormat = new TextFormat("微软雅黑", 10, 0x000000);
        	}
        	else
        	{
        		clueText.defaultTextFormat = new TextFormat("微软雅黑", 15, 0x000000);
        	}
        	clueText.text = words[rank];
			clueText.x = 20;
			clueText.y = clueMsgBgrSprite.height * 0.15;
			addChild(clueText);
		}

	}
}